﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.SAMPLES.SAMPLES_01
{
     class Animals
    {

        bool ischan, ismat;

        public bool ISMAT
        {
            get { return ismat; }
            set { ismat = value; }
        }

        public bool ISCHAN
        {
            get { return ischan; }
            set { ischan = value; }
        }
        public Animals()
        { }
        public Animals(bool IsChan, bool IsMat)
        {
            ischan = IsChan;
            ismat = IsMat;
            
        }

         public bool Chay()
        {
            return true;
        }
         public bool Ngu()
         {
             return true;
         }
    }
}
